/*
    @desc 获取当前环境
*/

const config = require('../app.config.js')
const { CURRENT } = require('../app.environment.js')

function getEnvironmentInfo (val) {
  let result = config.branches.filter(item => item.value === val)
  return result ? result[0] : config.branches[0]
}

export default {
  environment: getEnvironmentInfo(CURRENT)
}
